import { create } from "zustand"; 

interface UserPageDateState {
  width?: number;
  height?: number;
}

interface actions {
    updateWidth: (width: number) => void;
    updateHeight: (height: number) => void;
}

const useUserPageDate = create<UserPageDateState & actions>((set) => ({
  updateWidth: (width) => set(() => ({ width })),
  updateHeight: (height) => set(() => ({ height })),
}));

export default useUserPageDate;